import request from '@/utils/request';

// 数据展示登录方法
export function dashboardLogin (userName, password) {
  const data = {
    userName,
    password
  }
  return request({
    url: '/api/dashboardLogin',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

export function getInfo (username) {
  const data = {
    username

  }
  return request({
    url: '/api/getInfo',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}
